package pro.cherish.knowledgetemp.CommandLineRunnerDemo;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.CommandLineRunner;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

/**
 * @author 创建人：cherish
 * @version 版本号：V1.0
 * <p>
 * ***************************修订记录************************************
 * 2019-12-31 cherish 创建该类功能。
 * **********************************************************************
 * </p>
 * @ClassName 类名：CommandLineRunnerDemo1
 * @Description 功能说明：
 * <p>
 * TODO
 * </p>
 * **********************************************************************
 * @date 创建日期： 2019-12-31 cherish
 */
@Component
@Order(1)
public class CommandLineRunnerDemo1 implements CommandLineRunner {
    @Value("${server.port}")
    private String port;

    @Override
    public void run(String... args) throws Exception {
        System.out.println("CommandLineRunnerDemo1 do something");
        System.out.println(port);
    }
}
